import request from '@/utils/request'

// 获得广告信息分页
export function getAdvertisePage(query) {
    return request({
      url: '/pekingFish/advertise/pageAdvertises',
      method: 'get',
      params: query
    })
  }

// 创建广告信息
export function createAdvertise(data) {
  return request({
    url: '/pekingFish/advertise',
    method: 'post',
    data: data
  })
}

// 更新广告信息
export function updateAdvertise(data) {
  return request({
    url: '/pekingFish/advertise',
    method: 'put',
    data: data
  })
}




// 导出广告信息 Excel
export function exportAdvertiseExcel(query) {
  return request({
    url: '/pekingFish/advertise/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
